package com.parse.ast;

public enum ASTNodeType {
    COMPILATION_UNIT,//Java编译单元
    PRIMITIVE_TYPE,// int bolean
    ARRAY_TYPE,//数组类型
    VOID,// void
    COMMENTS,//注释
    PACKAGE_DECLARATION,//Java包声明
    IMPORT_DECLARATION,//Java导入声明
    TYPE_DECLARATION,//Java类型声明，如类、接口、枚举等
    CLASS_DECLARATION,//Java类声明
    INTERFACE_DECLARATION,//Java接口声明
    ENUM_DECLARATION,//Java枚举声明
    FIELD_DECLARATION,//Java字段声明
    METHOD_DECLARATION,//Java方法声明
    PARAMETER_LIST,//Java方法参数列表
    PARAMETER,//Java方法参数
    BLOCK,//Java代码块
    EXPRESSION_STATEMENT,//Java表达式语句
    ASSIGNMENT,//Java赋值表达式
    METHOD_INVOCATION,//Java方法调用表达式
    NEW_EXPRESSION,//Java新建对象表达式
    LITERAL,//Java字面量表达式，如整型、浮点型、字符串等
    IDENTIFIER,//Java标识符表达式
    IF_STATEMENT,//Java if语句
    FOR_STATEMENT,//Java for语句
    WHILE_STATEMENT,//Java while语句
    DO_WHILE_STATEMENT,//Java do-while语句
    SWITCH_STATEMENT,//Java switch语句
    CASE_LABEL,//Java switch语句的case标签
    BREAK_STATEMENT,//Java break语句
    CONTINUE_STATEMENT,//Java continue语句
    RETURN_STATEMENT,//Java return语句
    THROW_STATEMENT,//Java throw语句
    THROWS,//方法声明的throws关键字
    TRY_STATEMENT,//Java try语句
    CATCH_CLAUSE,//Java catch子句
    FINALLY_CLAUSE,//Java finally子句
    ARRAY_ACCESS,//Java数组访问表达式
    ARRAY_CREATION,//Java数组创建表达式
    ARRAY_INITIALIZER,//Java数组初始化表达式
    CAST_EXPRESSION,//Java类型转换表达式
    INSTANCEOF_EXPRESSION,//Java instanceof表达式
    CONDITIONAL_EXPRESSION,//Java三目运算符表达式
    BINARY_EXPRESSION,//Java二元运算符表达式
    UNARY_EXPRESSION,//Java一元运算符表达式
    POSTFIX_EXPRESSION, //Java后缀运算符表达式
    VARIABLE, //变量
    INTEGER_LITERAL, // 123
    LONG_LITERAL, // 123L
    FLOAT_LITERAL, // 3.14f
    DOUBLE_LITERAL, // 3.14d
    CHARACTER_LITERAL, // 'a'
    STRING_LITERAL, // "hello world"
    BOOLEAN_LITERAL, // true/false
}

